/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.scrumpmt.web;

import java.util.Locale;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;




/**
 *
 * @author Emilio
 */
@ManagedBean (name = "idiomaBean")
@SessionScoped
public class IdiomaBean {

     private Locale locale;
    /**
     * Creates a new instance of IdiomaBean
     */
    public IdiomaBean() {
        
       locale=new Locale ("es","ES");
    }

    public Locale getLocale() {
        return locale;
    }

    public void setLocale(Locale locale) {
        this.locale = locale;
    }
   
    public String changeSpanish(){
        locale=new Locale("es","ES");
        return null;
    }
    public String changeEnglish(){
        locale=new Locale("en","UK");
        return null;
    }
  

    
    
}
